//
//  ZtitleLabel.m
//  ZeroCorner
//
//  Created by lanou3g on 15/11/18.
//  Copyright © 2015年 Zero_Zhou. All rights reserved.
//

#import "ZtitleLabel.h"




@implementation ZtitleLabel

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.textAlignment = NSTextAlignmentCenter;
        self.font = [UIFont systemFontOfSize:18];
        self.scale = 0.0;
    }
    return self;
}

-(void)setScale:(CGFloat)scale{
    _scale = scale;
    self.textColor = [UIColor colorWithRed:0.059 green:0.201 blue:0.700 alpha:1.000];
    CGFloat minScale = 0.7;
    CGFloat tureScale = minScale + (1 - minScale)*scale;
    self.transform = CGAffineTransformMakeScale(tureScale, tureScale);
}

@end
